package com.itheima.integer;

public class Test {
    public static void main(String[] args) {
        int a = 10;
        Integer res = Integer.valueOf(10);
        System.out.println("res = " + res);

        Integer c = a;
        System.out.println("c = " + c);

        Integer d1 = new Integer(10);
        System.out.println("d1 = " + d1);
        int i1 = d1.intValue();
        System.out.println("i1 = " + i1);
        Integer d2 = new Integer("20");
        int i2 = d2.intValue();
        System.out.println("i2 = " + i2);

        Integer i = 20;
        i+=10;
        System.out.println("i = " + i);

        Integer j = null;
        if(j != null){
            j+=10;
            System.out.println("j = " + j);
        }
        //自动装箱
        Integer f = 10;
        //自动拆箱
        int g = f;

    }
}
